<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsStockSyncLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('goods_stock_sync_log', function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('goods_id') ->default(0);
            $table->string('goods_code') ->nullable();
            $table->integer('goods_spu_id') ->default(0);
            $table->string('sku_code') ->nullable();
            $table->string('color_code')  ->nullable();
            $table->string('color_name') ->nullable();
            $table->string('size_code') ->nullable();
            $table->string('size_name') ->nullable();
            $table->integer('num') ->default(0);
            $table->integer('lock_num') ->default(0);
            $table->integer('road_num') ->default(0);
            $table->string('ck_name') ->nullable();
            $table->string('ck_dm') ->nullable();
            $table->string('kw_name') ->nullable();
            $table->integer('last_num') ->default(0);
            $table->string('remark') ->nullable();
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
